﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlanningGIS.Util.Log
{
    /// <summary>
    /// 日志委托
    /// </summary>
    /// <param name="log">传递字符串、LogMessage对象、Exception对象等</param>
    public delegate void WriteLog2(dynamic log);

    /// <summary>
    /// 日志信息类
    /// </summary>
    public class LogMessage
    {
        /// <summary>
        /// 获取或设置日志消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 日志类型
        /// </summary>
        public zjgisLogType LogType { get; set; }
    }
    
    /// <summary>
    /// 日志类型
    /// </summary>
    public enum zjgisLogType
    {
        /// <summary>
        /// 普通日志
        /// </summary>
        zjgisLogNormal,
        /// <summary>
        /// 执行操作日志
        /// </summary>
        zjgisLogDone,
        /// <summary>
        /// 错误日志
        /// </summary>
        zjgisLogError
    }

    
}
